#include <stdio.h>
#include <stdlib.h>

int main() 
{
    int* numbers = (int*)malloc(5 * sizeof(int));
    if (numbers != NULL) 
    {
        for (int i = 0; i < 5; i++)
        {
            numbers[i] = i + 1;
        }
        for (int i = 0; i < 5; i++) 
        {
            printf("%d ", numbers[i]);
        }
        free(numbers);
    }
    else
    {
        printf("Memory allocation failed.\n");
    }
    return 0;
}
